﻿<%@ Import Namespace="AspNetMvc" %>
<%@ Import Namespace="WebGuiMvc" %>
<ul class="menu">
<%
    if (Request != null && Request.IsAuthenticated)
    {
%>
<li><p class="nick"><%= Html.Encode(Page.User.Identity.Name) %></p></li><br />
<li><%= Html.ActionLink(ViewStrings.LogOnStrings.Logoff, MVC.Account.ActionNames.LogOff, MVC.Account.Name, null, new { @class = "my" })%></li>
<li><%= Html.ActionLink(ViewStrings.LogOnStrings.Myprofile, MVC.Account.ActionNames.UpdateProfile, MVC.Account.Name, null, new { @class="my"})%></li>
<li><%= Html.RouteLink(ViewStrings.LogOnStrings.Myevents, "MyEvents", null, new { @class = "my" })%></li>
<%
    }
    else
    {
%>
<li><%= Html.ActionLink(ViewStrings.LogOnStrings.Logon, MVC.Account.ActionNames.LogOn, MVC.Account.Name, null, new { @class="vhod" })%></li>
<%
    }
%>
</ul>
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>